home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3120 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: www.cybercity.dk!usenet
  2. From: ccc6004@vip.cybercity.dk (Hans Henrik Happe)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: doubling pixels horizontally
  5. Date: 10 Feb 1996 10:14:11 GMT
  6. Organization: CyberCity of Denmark
  7. Message-ID: <1257.6614T57T922@vip.cybercity.dk>
  8. References: <4f4ibc$gl9@news.cs.tu-berlin.de> <591.6610T1165T2102@login.eunet.no><1045.6611T753T2256@vip.cybercity.dk><4faoe1$47@sunsystem5.informatik.tu-muenchen.de>
  9.     <2991.6612T1034T625@vip.cybercity.dk> <576.6613T1070T1730@login.eunet.no>
  10. NNTP-Posting-Host: 194.16.56.103
  11. X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  12.  
  13.  
  14. Patrick Hanevold ( patrick.hanevold@login.eunet.no ) wrote:
  15. >>> not really. to change 100 pixels, you got to write 100 words.
  16. >>> only fx running 50Hz might work with the trick of writing
  17. >>> only 50 pix each frame, but then gfx maybe doesn't look
  18. >>> more like 50pix.
  19.  
  20. >>A bitmap for this screen would look like this:
  21.  
  22. >>ChipMem: 0101010101...  ; the '0' representing bitplane 0, '1' bitplane 1
  23. >>         ^^^^^^^^^^
  24. >>Pixel:   0011223344
  25.  
  26. > To write 01010101 to SHIT-RAM STIL need at least one write.
  27. > So whats the point?
  28.  
  29. The point is that you only have to write 1 bit/pixel for each bitplane to display
  30. 2 pixels with the same color horisontaly as in 2x1. This is not true when you make 2x1
  31. in the c2p rutine. Then you have to write 320/8=40 bytes per line for each bitplane but
  32. you only have to calc 320/2=160 pixels/line because you double the pixel width.
  33.  
  34. In my example I only have to write 128/8 bytes per line. This means a 2x2 fullscreen
  35. with 160*128=20480 pixels and 256 colors only takes 20480/4=5120 processor long writes to
  36. chipmem and one blitter pass is only 20480 bytes.
  37.  
  38. There is a few demos using this kind of blitterscreen with the spritemask. Some of
  39. the TP5 demos do, I can't remember whitch.
  40.  
  41.  
  42. Hans Henrik Happe
  43. Alias Goat / Sumpen
  44.  
  45.